package com.chris.libs.example.pages.ext.recyclerview;

import com.chris.libs.base.x.mvpp.mvpp.DefaultPresenter;
import com.chris.libs.example.model.DataItem;

import java.util.List;

import javax.inject.Inject;
import javax.inject.Named;

/**
 * @author Chris chan
 * Create on： 2025/2/2 2:25
 * Use for:
 * Explain:
 */
public class RecyclerViewExamplePresenter extends DefaultPresenter<RecyclerViewExampleContract.UIView>
        implements RecyclerViewExampleContract.Presenter {
    @Inject
    RecyclerViewExampleViewModel viewModel;

    @Named("recyclerDataItemList")
    @Inject
    List<DataItem> dataList;

    @Inject
    public RecyclerViewExamplePresenter() {
    }

    @Override
    public void getData() {
        this.viewModel.setDataList(this.dataList);
    }
}
